package common.utils.annotations;


import common.utils.enums.SensitiveTypeEnum;

import java.lang.annotation.*;

/**
 * 自定义格式化注解（脱敏）
 */
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER, ElementType.TYPE_USE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface Desensitization {

    //    脱敏类型(规则)
    SensitiveTypeEnum type() default SensitiveTypeEnum.STRINGDEFAULTVALUE;
}
